﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;

namespace 纯代码创建wpf应用程序 {
    class Program:Application {
        [STAThread()]
        static void Main() {
            Program app = new Program();
            app.MainWindow = new Window1();
            app.MainWindow.ShowDialog();
        }
    }
}
